import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
// 让所有浏览器初始化的样式统一，并不是清除所有的margin padding之类的
import 'normalize.css'
// 再导入自己的公共样式
import '@/assets/styles/common.less'
import router from '@/router'
// vue插件机制，Vue.use原理、app.use原理=》install
import XtxUI from './components'

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'


// vue注册为全局组件的写法
// import XtxSkeleton from '@/components/skeleton/index.vue'
// app.component('XtxSkeleton',XtxSkeleton)

const app = createApp(App)
const pinia = createPinia()

pinia.use(piniaPluginPersistedstate)

app.use(router)
app.use(pinia)
app.use(XtxUI)
app.mount('#app')
